<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>thymeleaf模板技术</title>
</head>
<body>
    <h3>入门测试</h3>
    <h4><span th:text="${msg}"/></h4>

    <h3>foreach、时间格式化测试</h3>
    <ul th:each="user:${users}">
        <li><span th:text="${user.name}"/></li>
        <li><span th:text="${user.age}"/></li>
        <li><span th:text="${#dates.format(user.bir,'yyyy年MM月dd日')}"/></li>
    </ul>
</body>
</html>